package com.zabra.zl.ui.clear;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zabra.zl.R;
import com.zabra.zl.data.ClearBean;

import java.util.List;

public class Adp extends BaseQuickAdapter<ClearBean.RespDataBean, BaseViewHolder> {
    public Adp(int layoutResId, @Nullable List<ClearBean.RespDataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ClearBean.RespDataBean item) {
        helper.setText(R.id.item_name, item.getSharesName())
                .setText(R.id.item_date, item.getClearDate())
                .setText(R.id.item_price, item.getClearPrice() + "")
                .setText(R.id.item_yingkui, item.getEarnAmt() + "")
                .setText(R.id.item_yinkuibi, item.getEarnAmtRate() + "%");
    }
}
